Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix chartjs init for benchmark #191

Merged
merged 4 commits into from
Mar 23, 2024
Merged

Conversation

smarr
Copy link
Owner

@smarr smarr commented Mar 23, 2024

I was a bit too eager and didn't notice that benchmarking was broken for #190, which fixed memory leaks as noticed in #188.

This PR fixes the initialization of ChartJS, doing it now unconditionally when even the relevant code is loaded.

This PR also fixes the Dockerfile so that the patching from #190 also works.

And with that, we see that results are generated now in 22%-40% less time:

https://rebench.dev/ReBenchDB/compare/b0b149a77371ca2e685cf0aab786a32ec26ca958..55c5c5d7ba7d1f6cd4ebbef5febae9bd3bd40539

This is mostly for convenience. I missed initializing the benchmark, but since we always do the same thing everywhere, I suspect I can just do it unconditionally.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
I assume that package.json changes should invalidate the cache for the early copy

Signed-off-by: Stefan Marr <git@stefan-marr.de>
This is needed, because we run the patching as part of the postinstall command, and thus, needed it before the full copy.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr added the bug Something isn't working label Mar 23, 2024
@smarr smarr merged commit 1d6a399 into master Mar 23, 2024
2 checks passed
@smarr smarr deleted the fix-chartjs-init-for-benchmark branch March 23, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant